********************************************************************************************************
* Study Title: Social Exclusion and Political Identity: The Case of Asian American Partisanship
* Replication File
* Date: May 9, 2016
* Written By: Alexander Kuo, Neil Malhotra, and Cecilia Hyunjung Mo
********************************************************************************************************

Observational Study
Data file: 31481-0001-Data.dta
Command file: observationaldata_kmm_050916_final.do

-  The observational study employs the dataset 31481-0001-Data.dta, which is publicly available at http://naasurvey.com/data/. 
-  The Stata do file observationaldata_kmm_050916_final.do contains information on (1) how we coded all of our variables and (2) the commands employed to reproduce all of our results. 

********************************************************************************************************

Experimental Study
Data file: experimentaldata_kmm_050916_final.dta
Command file: experimentaldata_kmm_050916_final.do
Command file: figure1.R

- The experimental study employs experimentaldata_kmm_050916_final.dta.
- The Stata do file experimentaldata_kmm_050916_final.do contains inforation on (1) how we coded all of our variables and (2) the commands employed to reproduce all of our results. 
- To procude Figure 1, run Stata Code experimentaldata_kmm_050916_final.do first to producte fig1.txt. Then run R Code figure1.R to create Figure 1 in the paper

********************************************************************************************************

Appendix Figure A.1
Data file: cces08_common_output.dta
Data file: cces2012_common.dta
Command file: cces_analysis_figa1.do
Command file: cces_figureA1.R

- Figure A.1 employs the use of two datasets: cces08_common_output.dta and cces2012_common.dta.
- Run the Stata Code cces_analysis_figa1.do first to produce results matrices cces_stacked.dta and cces_stacked.txt.
- Then run R Code cces_figureA1.R to make the figure based on results matrices.

********************************************************************************************************

Appendix Figure A.2
Data file: FigureA2_a.csv
Command file: figureA2.R

- Figure A.2 employs FigureA2_a.csv.
- Run R Code figureA2.R to make the two subfigures based on the CSV file and raw data that is contained within the R Code.
